'use client';

import { useRouter } from "next/navigation";

export const LoginButton = ({ children, mode = 'redirect', asChild }) => {
    const router = useRouter();
    const onClick = () => { 
        router.push('/auth/login');
    };
    return (
        <span onClick={onClick} className="cursor-pointer">
            {children}
        </span>
    );
};
